enyo.kind({
	name: "hpit.WebService",
	kind: enyo.Control,
	
	url: null,
	headers: null,
	params: null,
	
	setUrl: function(url) {
		this.url = url;
	},
	
	setHeaders: function(headers) {
		this.headers = headers;
	},
	
	setParams: function(params) {
		this.params = params;
	},
	
	call: function(container, callback) {
		var ajax = new enyo.Ajax({
			url: this.url,
			headers: this.headers
		})
		return ajax.response(container, callback).go(this.params);
	}
});
